//
//  RootData-Model.m
//  22-homework-QQMV-ALi
//
//  Created by 王道林 on 16/8/13.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "RootData-Model.h"
#import "List-Model.h"
#import "mv_show_playModel.h"

@implementation RootData_Model


- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    NSMutableArray *playMarr = [NSMutableArray array];
    if ([key isEqualToString:@"mv_show_play"]) {
        for (NSDictionary *dic in value) {
            mv_show_playModel *model = [mv_show_playModel modelWithDic:dic];
            [playMarr addObject:model];
        }
        _mv_show_play = playMarr;
    }
    NSMutableArray *contMarr = [NSMutableArray array];
    if ([key isEqualToString:@"contents"]) {
        for (NSDictionary *dic in value[@"list"]) {
            List_Model *list = [List_Model modelWithDic:dic];
            [contMarr addObject:list];
        }
        _contents = contMarr;
    }
}



@end
